package com.tsyz.servlet.dao;

import com.tsyz.servlet.domain.bo.req.UserFindByUserNameReqBO;
import com.tsyz.servlet.domain.bo.req.UserGetUserByIdReqBO;
import com.tsyz.servlet.domain.bo.req.UserUpdateUserReqBO;
import com.tsyz.servlet.domain.bo.resq.UserFindAllRespBO;
import com.tsyz.servlet.domain.bo.resq.UserFindByUserNameRespBO;
import com.tsyz.servlet.domain.bo.resq.UserGetUserByIdRespBO;
import com.tsyz.servlet.domain.po.UserPO;

import java.util.List;

public interface UserDao {

    List<UserFindAllRespBO> findAll();

    UserGetUserByIdRespBO getUserById(UserGetUserByIdReqBO reqBo);

    UserPO updateUser(UserUpdateUserReqBO reqBo);

    UserPO createUser(UserPO userPo);

    boolean deleteUser(UserGetUserByIdReqBO reqBo);

    UserFindByUserNameRespBO findByUserName(UserFindByUserNameReqBO reqBO);

    boolean checkPassword(String password, String password1);
}
